package it.mercatino.test.fooClasses;

import it.mercatino.test.MacroCommandTest;

public class FooReceiver {

	private int valueToAdd;
	private MacroCommandTest test;
	

	public FooReceiver(int valueToAdd, MacroCommandTest test) {
		super();
		this.valueToAdd = valueToAdd;
		this.test = test;
	}
	
	
	public void add() {
		
		test.setValue(test.getValue() + valueToAdd);
	}

	public int getValueToAdd() {
		return valueToAdd;
	}

	public void setValueToAdd(int valueToAdd) {
		this.valueToAdd = valueToAdd;
	}
	
}
